# 你刚得知有位嘉宾无法赴约，因此需要另外邀请一位嘉宾。
# 以完成练习3-4时编写的程序为基础，在程序末尾添加一条print语句，指出哪位嘉宾无法赴约。
# 修改嘉宾名单，将无法赴约的嘉宾的姓名替换为新邀请的嘉宾的姓名。 再次打印一系列消息，向名单中的每位嘉宾发出邀请

friends = ["Albert Einstein", "Leonhard Euler", "Archimedes"]
print(f"Dear {friends[0]}, I want to have a dinner with you.")
print(f"Dear {friends[1]}, I want to have a dinner with you.")
print(f"Dear {friends[2]}, I want to have a dinner with you.")

print(f"\n{friends[2]} can't come tonight.")

friends[2] = "René Descartes"
print(f"\nDear {friends[0]}, I want to have a dinner with you.")
print(f"Dear {friends[1]}, I want to have a dinner with you.")
print(f"Dear {friends[2]}, I want to have a dinner with you.")
